<?php


namespace App\Constants;


class SmsConstant
{
    const GROUP = 'sms';

    const SMS_DRIVER = 'sms_driver';
    const MAX_COUNT = 'sms_max_count';
    const MAX_EXPIRE = 'sms_max_expire';

    const ALIYUN_APP_KEY = 'sms_aliyun_app_key';
    const ALIYUN_APP_SECRET_KEY = 'sms_aliyun_app_secret_key';
    const ALIYUN_APP_SIGN_NAME = 'sms_aliyun_sign_name';

    const TPL_TYPE_DEFAULT = 'default';
    const TPL_TYPE_EXCHANGE_INTEGRAL = 'exchange_integral';
    const TPL_TYPE_VIP_OPEN = 'vip_open';
    const TPL_TYPE_VIP_DUE = 'vip_due';
    const TPL_TYPE_VIP_EXPIRE = 'vip_expire';

    const MAP = [
        self::SMS_DRIVER => '短信驱动',
        self::MAX_COUNT  => '最多失败次数',
        self::MAX_EXPIRE => '过期时间（秒）',

        self::ALIYUN_APP_KEY        => '阿里云短信KEY',
        self::ALIYUN_APP_SECRET_KEY => '阿里云短信SECRET KEY',
        self::ALIYUN_APP_SIGN_NAME  => '阿里云短信签名',
    ];

    const TPL_TYPE_MAP = [
        self::TPL_TYPE_DEFAULT           => '通用',
        self::TPL_TYPE_EXCHANGE_INTEGRAL => '兑换积分',
        self::TPL_TYPE_VIP_OPEN          => 'VIP开通',
        self::TPL_TYPE_VIP_DUE           => 'VIP即将到期',
        self::TPL_TYPE_VIP_EXPIRE        => 'VIP到期',
    ];
}
